package iqq.mk.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class UserMainCardInfo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5772957024647779652L;
	/**
	 * 0:成功
	 * 1001:末知
	 * 1005:末开通
	 */
	private int code;//return code
	private long qq;//qq
	private int sex;
	private String name;//name
	private String elfname;//精灵名字
	private int redvip;//vip
	private int redlv;
	private int yearvip;
	private int lv;//lv
	private int money;//money
	private int exp;//expernice
	private int mana;//moli
	private int randchance;//抽卡次数
	private long regti;//reg play time
	private long lastrandti;//最后抽卡时间
	private int changeBoxSize;//
	private int storeBoxSize;//
	private List<ThemeCard> changeThemes;//换卡设置
	/** 包含偷炉QQ
	 * {id=7484, stove=4, flag=1, locktime=359856, prop=0, btime=1463725929, type=1, slot=4},
	{id=41, stove=0, flag=2, id2=40, slottype=steal, locktime=3600, prop=0, btime=1463930007, type=1, slot=6, opuin2=398712920, opuin=452408809}
	*/
	private List<Stove> stoveboxcards;  //炉位箱，
	private List<SlotCard> changeboxcards;  //换卡箱
	private List<SlotCard> storeboxcards; //保险箱
	public UserMainCardInfo(){
		this.changeThemes = new ArrayList<ThemeCard>();
		this.stoveboxcards = new ArrayList<Stove>();
		this.changeboxcards = new ArrayList<SlotCard>();
		this.storeboxcards = new ArrayList<SlotCard>();
	}
	public void addChangeThemes(ThemeCard theme){
		this.changeThemes.add(theme);
	}
	public void addStoveBoxCard(Stove stove){
		this.stoveboxcards.add(stove);
	}
	public void addChangeBoxCard(SlotCard slotCard){
		this.changeboxcards.add(slotCard);
	}
	public void addStoreBoxCard(SlotCard slotCard){
		this.storeboxcards.add(slotCard);
	}
	public long getQq() {
		return qq;
	}
	public void setQq(long qq) {
		this.qq = qq;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getElfname() {
		return elfname;
	}
	public void setElfname(String elfname) {
		this.elfname = elfname;
	}
	public int getRedvip() {
		return redvip;
	}
	public void setRedvip(int redvip) {
		this.redvip = redvip;
	}
	public int getYearvip() {
		return yearvip;
	}
	public void setYearvip(int yearvip) {
		this.yearvip = yearvip;
	}
	public int getLv() {
		return lv;
	}
	public void setLv(int lv) {
		this.lv = lv;
	}
	public int getMoney() {
		return money;
	}
	public void setMoney(int money) {
		this.money = money;
	}
	public int getExp() {
		return exp;
	}
	public void setExp(int exp) {
		this.exp = exp;
	}
	public int getChangeBoxSize() {
		return changeBoxSize;
	}
	public void setChangeBoxSize(int changeBoxSize) {
		this.changeBoxSize = changeBoxSize;
	}
	public int getStoreBoxSize() {
		return storeBoxSize;
	}
	public void setStoreBoxSize(int storeBoxSize) {
		this.storeBoxSize = storeBoxSize;
	}
	public int getRandchance() {
		return randchance;
	}
	public void setRandchance(int randchance) {
		this.randchance = randchance;
	}
	
	public List<ThemeCard> getChangeThemes() {
		return changeThemes;
	}
	public String getChangeThemesIds() {
		if(changeThemes.size()==0){
			return null;
		}
		StringBuffer sb = new StringBuffer();
		for(ThemeCard theme:changeThemes){
			sb.append(theme.getId()+",");
		}			
		sb.deleteCharAt(sb.length()-1);
		return sb.toString();
	}	
	public void setChangeThemes(List<ThemeCard> changeThemes) {
		this.changeThemes = changeThemes;
	}
	public List<Stove> getStoveboxcards() {
		return stoveboxcards;
	}
	public void setStoveboxcards(List<Stove> stoveboxcards) {
		this.stoveboxcards = stoveboxcards;
	}
	public List<SlotCard> getChangeboxcards() {
		return changeboxcards;
	}
	public void setChangeboxcards(List<SlotCard> changeboxcards) {
		this.changeboxcards = changeboxcards;
	}
	public List<SlotCard> getStoreboxcards() {
		return storeboxcards;
	}
	public void setStoreboxcards(List<SlotCard> storeboxcards) {
		this.storeboxcards = storeboxcards;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public int getMana() {
		return mana;
	}
	public void setMana(int mana) {
		this.mana = mana;
	}
	public int getRedlv() {
		return redlv;
	}
	public void setRedlv(int redlv) {
		this.redlv = redlv;
	}
	public long getLastrandti() {
		return lastrandti;
	}
	public void setLastrandti(long lastrandti) {
		this.lastrandti = lastrandti;
	}
	public long getRegti() {
		return regti;
	}
	public void setRegti(long regti) {
		this.regti = regti;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	

}
